package cn.yo2.irain.log4money.app.msgboard;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2010-3-29
 * Time: 13:11:26
 * To change this template use File | Settings | File Templates.
 */
public class MessagesBoardServiesImpl implements IMessagesBoardServies{

    private IMessagesBoardDAO messagesBoardDAO;

    public IMessagesBoardDAO getMessagesBoardDAO() {
        return messagesBoardDAO;
    }

    public void setMessagesBoardDAO(IMessagesBoardDAO messagesBoardDAO) {
        this.messagesBoardDAO = messagesBoardDAO;
    }

    public void save(MessagesBoard msgBoard) {
        messagesBoardDAO.save(msgBoard);
    }

    public void delete(MessagesBoard msgBoard) {
        messagesBoardDAO.delete(msgBoard);
    }

    public MessagesBoard findById(String id) {
        return messagesBoardDAO.findById(id);
    }

    public List findByEmail(String email) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List findByContent(String content) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List findByReplyContent(String replyContent) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List findAll() {
        return this.messagesBoardDAO.findAll();
    }
}
